/**
 * File: action.ts
 * Project: reactssr
 * Created Date: Wednesday 2018/01/03 10:53:28
 * Author: zhengjiang
 * -----
 * Last Modified: Thursday 2018/01/04 13:46:41
 * Modified By: zhengjiang
 * -----
 * Description: 
 * 
 */

import { createActions } from 'redux-actions';
import { IAction } from '../index';
import { IIndexState } from './reducer';

//#region actions定义

export const indexActions: IIndexActions = createActions({
	INIT_COUNT: (x) => x,
    UPDATE_COUNT: (x) => x
});

/* action 方法定义 */
export interface IIndexActions {
    initCount: IAction<IIndexState>;
    updateCount: IAction<IIndexState>
}
//#endregion

export * from './reducer';
export * from './saga';
